package com.example.warehouse.bus.pojo.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * @author 欧胤
 * @version 1.0
 * @description: 客户表实体类
 * @date 2023/6/30 9:10
 */
@Data
@TableName("bus_customer")
public class BusCustomer implements Serializable {
    @ExcelProperty(value = "ID",index = 0)
    @TableId(type = IdType.AUTO)
    private Long id;                          // 数据ID

    @ExcelProperty(value = "公司名字",index = 1)
    private String customerName;              // 公司名字

    @ExcelProperty(value = "邮政编码",index = 2)
    private String zip;                       // 邮政编码

    @ExcelProperty(value = "地址",index = 3)
    private String address;                   // 地址

    @ExcelProperty(value = "移动电话",index = 4)
    private String telephone;                 // 移动电话

    @ExcelProperty(value = "联系人姓名",index = 5)
    private String connectionPerson;          // 联系人姓名

    @ExcelProperty(value = "手机号码",index = 6)
    private String phone;                     // 手机号码

    @ExcelProperty(value = "开户行",index = 7)
    private String bank;                      // 开户行

    @ExcelProperty(value = "银行卡号",index = 8)
    private String account;                   // 银行卡号

    @ExcelProperty(value = "邮箱",index = 9)
    private String email;                     // 邮箱

    @ExcelProperty(value = "传真号",index = 10)
    private String fax;                       // 传真号

    @ExcelProperty(value = "排序序号",index = 11)
    private Integer sort;                     // 排序序号

    @ExcelProperty(value = "是否启用",index = 12)
    private Integer enable;                   // 是否启用1启用0不启用

    /**
     * 数据创建时间
     */
    @ExcelProperty(value = "数据创建时间",index = 13)
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    /**
     * 数据最后修改时间
     */
    @ExcelProperty(value = "数据最后修改时间",index = 14)
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;
}
